<template>
	<text style="color:#e61022">
		{{statusText}}
	</text>
</template>

<script>
	export default {
		name:"statusLabel",
		props:['status'],
		data() {
			return {
				statusText:[],
			};
		},
		watch:{
			status(newVal,oldVal){
				this.change(this.status);
			}
		},
		created()
		{
			this.change(this.status);
		},
		methods:{
			change(value){
				switch(value){
					case 0:
					  this.statusText='已进厂待拆修';
					  break;
					case 1:
					  this.statusText='已拆待客户确认';
					  break;
					case 2:
					  this.statusText="已确认待维修";
					  break;
					case 3:
					  this.statusText='已维修待试压';
					  break;
					case 4:
					  this.statusText='已试压待喷漆';
					  break;
					case 5:
					  this.statusText='已试压待喷漆入库';
					  break;
					case 6:
					  this.statusText='已喷漆入库待出库';
					  break;
					case 7:
					  this.statusText='已出库待收货';
					  break;
					case 8:
					  this.statusText='已确认收货';
					  break;
					default:
					  this.statusText='未知';
					  break;
				}
			}
		}
	}
</script>

<style>

</style>